import cv2

from Utils import list_to_tensor, str_result_to_real_result
from fn import vis_frame

image = cv2.imread('/home/primer/image/test.jpg')
with open('result_data.txt', 'r') as f:
    result = f.read()
result = str_result_to_real_result(result)
img = vis_frame(image, result)
cv2.imshow('demo', img)
cv2.waitKey(1000)